package com.fit.model.combo.sport;

import org.hibernate.Session;

import com.fit.entities.sport.Sport;





public class SportEncoder {
	private Session session;

	public SportEncoder(Session session) {
		this.session = session;
	}

	public String toClient(Object arg0) {
		return ((Sport)arg0).getName();
	}

	public Object toValue(String arg0) {
		return session.load(Sport.class, new Long(arg0));
	}
}
